package cn.org.timespace.easyframe.service.permission;

import java.util.List;

import cn.org.timespace.easyframe.action.permission.EFRoleModel;
import cn.org.timespace.easyframe.model.permission.EfRole;


/**
 * A data access object (DAO) providing persistence and search support for
 * EfRole entities. Transaction control of the save(), update() and delete()
 * operations can directly support Spring container-managed transactions or they
 * can be augmented to handle user-managed Spring transactions. Each of these
 * methods provides additional information for how to configure it for the
 * desired type of transaction control.
 * 
 * @see cn.org.timespace.easyframe.model.permission.EfRole
 * @author MyEclipse Persistence Tools
 */
 
public interface EfRoleService{
	// property constants
	public static final String ROLE_NAME = "roleName";
	public static final String ROLE_CODE = "roleCode";
	public static final String DIC_ROLE_IS_VALID = "dicRoleIsValid";

	public void save(EfRole transientInstance);

	public void delete(EfRole persistentInstance);
	
	public void deleteRole(String roleId);
	
	public EfRole findById(String roleId);
	
	public List<EfRole> findByCondition(EFRoleModel model);

	public void update(EfRole transientInstance);
}